// 页面弱提示
var noticeToUser =function(message,status) {

  if ( typeof status == "undefined" ) {
    status = 'error';
  } else {
    status = 'success';
  }

  if ( status == 'success' ) {
    $('#update-remind').css({'background':'rgb(77,220,152)'});
  }else if( status == 'error' ){
    $('#update-remind').css({'background':'rgb(255,0,30)'});
  }
  $('#update-remind').text(message);
  $('#update-remind').slideDown(500);
  window.setTimeout(function(){
    $('#update-remind').slideUp(500);
  },3000);
}

// DOM 准备好之后，如果有待提示的语句，进行提示
$( document ).ready(function() {
  if (localStorage.getItem('remindMessage') ) {
    noticeToUser(localStorage.getItem('remindMessage'),'success');
    localStorage.removeItem('remindMessage');
  }
});